package org.springagg.webapp.service.impl;

import java.util.List;

import org.springagg.webapp.bean.Resource;
import org.springagg.webapp.dao.ResourceMapper;
import org.springagg.webapp.service.ResourceService;
import org.springframework.stereotype.Service;

@Service
public class ResourceServiceImpl implements ResourceService {

	@javax.annotation.Resource
	private ResourceMapper remapper;

	@Override
	public int add(Resource resource) {
		return remapper.add(resource);
	}

	@Override
	public int update(Resource resource) {
		return remapper.update(resource);
	}

	@Override
	public int delete(int reid) {
		return remapper.delete(reid);
	}

	@Override
	public Resource get(int reid) {
		return remapper.get(reid);
	}

	@Override
	public List<Resource> all() {
		return remapper.all();
	}

}
